#!/bin/sh

tokenize()
{
    OLDIFS=$IFS
    s=$1
    d=$2
    IFS=$2
    set - $s
    echo $2
    IFS=$OLFIFS
}

a=$(tokenize 'value="12345"' =)
echo $a

string='value="123456"'
OLDIFS=$IFS
IFS="="
set - $string 
result=$2
IFS=$OLDIFS
echo $result
